package com.zutassociation.system.domain;

import com.zutassociation.common.core.domain.BaseEntity;
import com.zutassociation.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.security.core.userdetails.User;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 社联论坛表
 *
 * @author 黄玉东
 * @version 1.0
 * @date 2021/5/8 9:41
 */
public class Forum extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 论坛ID
     */
    private Long forumId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 论坛标题
     */
    private String forumTitle;

    /**
     * 论坛内容
     */
    private String forumContent;

    /**
     * 论坛状态（0正常 1关闭）
     */
    private String status;

    /**
     * 论坛点击量
     */
    private Long click;

    /**
     * 图片地址
     */
    private String img;

    /**
     * 点赞量
     */
    private Long fabulous;

    /**
     * 收藏量
     */
    private Long collection;

    /**
     * 回复数
     */
    private Long reply;

    /**
     * 举报（0：无，1：成功，2：不成功）
     */
    private String report;

    /**
     * 结帖（0：默认继续，1：结帖停止回复）
     */
    private String accept;

    /**
     * 用户对象
     */
    private SysUser user;

    public Long getReply() {
        return reply;
    }

    public void setReply(Long reply) {
        this.reply = reply;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public Long getForumId() {
        return forumId;
    }

    public void setForumId(Long forumId) {
        this.forumId = forumId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }


    public String getForumTitle() {
        return forumTitle;
    }

    public void setForumTitle(String forumTitle) {
        this.forumTitle = forumTitle;
    }

    public String getForumContent() {
        return forumContent;
    }

    public void setForumContent(String forumContent) {
        this.forumContent = forumContent;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getClick() {
        return click;
    }

    public void setClick(Long click) {
        this.click = click;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Long getFabulous() {
        return fabulous;
    }

    public void setFabulous(Long fabulous) {
        this.fabulous = fabulous;
    }

    public Long getCollection() {
        return collection;
    }

    public void setCollection(Long collection) {
        this.collection = collection;
    }

    public String getReport() {
        return report;
    }

    public void setReport(String report) {
        this.report = report;
    }

    public String getAccept() {
        return accept;
    }

    public void setAccept(String accept) {
        this.accept = accept;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("forumId", getForumId())
                .append("userId", getUserId())
                .append("forumTitle", getForumTitle())
                .append("forumContent", getForumContent())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("click", getClick())
                .append("img", getImg())
                .append("collection", getCollection())
                .append("fabulous", getFabulous())
                .append("reply", getReply())
                .append("report", getReport())
                .append("accept", getAccept())
                .append("sysUser", getUser())
                .toString();
    }
}
